# Declare the minimum CMake version number.
cmake_minimum_required(VERSION 3.5.0)

# Configure project information
project(NativeTemplateDemo)

# Use the set command. The format is set(key value).
set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

# Set the header file search directory.
include_directories(
    ${NATIVERENDER_ROOT_PATH}
    ${NATIVERENDER_ROOT_PATH}/include
)

# Add a log library.
find_library(
    # Sets the name of the path variable.
    hilog-lib
    # Specifies the name of the NDK library that
    # you want CMake to locate.
    hilog_ndk.z
)

# Add a library named hello. The library file name is libhello.so.
add_library(hello SHARED hello.cpp)

# Add the libraries to be linked.
target_link_libraries(hello PUBLIC ${hilog-lib} libace_napi.z.so libc++.a)